#pragma once

#include<unistd.h>
#include<fcntl.h>

void SetNonBolck(int sockfd)
{
    int fl = fcntl(sockfd, F_GETFL);
    if(fl < 0) return;
    fcntl(sockfd, F_SETFL, fl | O_NONBLOCK);
} 